package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Area;
import com.ruoyi.system.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeliveryDeptMapper;
import com.ruoyi.system.domain.DeliveryDept;
import com.ruoyi.system.service.IDeliveryDeptService;

/**
 * 交付部Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Service
public class DeliveryDeptServiceImpl extends ServiceImpl<DeliveryDeptMapper, DeliveryDept> implements IDeliveryDeptService
{
    @Autowired
    private DeliveryDeptMapper deliveryDeptMapper;

    /**
     * 查询交付部
     * 
     * @param id 交付部主键
     * @return 交付部
     */
    @Override
    public DeliveryDept selectDeliveryDeptById(Long id)
    {
        return deliveryDeptMapper.selectDeliveryDeptById(id);
    }

    /**
     * 查询交付部列表
     * 
     * @param deliveryDept 交付部
     * @return 交付部
     */
    @Override
    public List<DeliveryDept> selectDeliveryDeptList(DeliveryDept deliveryDept)
    {
        return deliveryDeptMapper.selectDeliveryDeptList(deliveryDept);
    }

    /**
     * 新增交付部
     * 
     * @param deliveryDept 交付部
     * @return 结果
     */
    @Override
    public int insertDeliveryDept(DeliveryDept deliveryDept)
    {
        return deliveryDeptMapper.insertDeliveryDept(deliveryDept);
    }

    /**
     * 修改交付部
     * 
     * @param deliveryDept 交付部
     * @return 结果
     */
    @Override
    public int updateDeliveryDept(DeliveryDept deliveryDept)
    {
        return deliveryDeptMapper.updateDeliveryDept(deliveryDept);
    }

    /**
     * 批量删除交付部
     * 
     * @param ids 需要删除的交付部主键
     * @return 结果
     */
    @Override
    public int deleteDeliveryDeptByIds(Long[] ids)
    {
        return deliveryDeptMapper.deleteDeliveryDeptByIds(ids);
    }

    /**
     * 删除交付部信息
     * 
     * @param id 交付部主键
     * @return 结果
     */
    @Override
    public int deleteDeliveryDeptById(Long id)
    {
        return deliveryDeptMapper.deleteDeliveryDeptById(id);
    }
}
